//
//  NSNumber+Formatter.m
//  BLUitility
//
//  Created by Benz.L on 23/08/2018.
//  Copyright © 2018 Benzii. All rights reserved.
//

#import "NSNumber+Formatter.h"

@implementation NSNumber (Formatter)

- (NSString *)stringValueWithMinimumFractionDigits:(NSUInteger)minmum {
    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
    formatter.numberStyle = kCFNumberFormatterDecimalStyle;
    formatter.roundingMode = NSNumberFormatterRoundHalfEven;
    formatter.minimumFractionDigits = minmum;
    return [formatter stringFromNumber:self];
}

@end
